package com.xy.gateway.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.gateway.dao.ProvidercertDao;
import com.xy.gateway.model.Providercert;
import com.xy.gateway.service.ProvidercertService;

@Service
@Transactional
public class ProvidercertServiceImpl extends BaseServiceImpl<Providercert> implements
		ProvidercertService {
	private ProvidercertDao providercertDao;

	public ProvidercertServiceImpl(ProvidercertDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.providercertDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return providercertDao.checkExist("Providercert", paraName, paraValue);
	}

	@Override
	public List<Providercert> getProvidercert(Map<String, Object> map) {
		return providercertDao.getProvidercert(map);
	}
	@Override
	public Pagination getProvidercertByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return providercertDao.getProvidercertByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Providercert save(Providercert providercert) {return super.save(providercert);}
}